﻿using System;
using System.Collections.Generic;

namespace DeliveryManage.Model
{
	/// <summary>
	/// Sys_User:实体类(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
    public partial class Sys_User
    {
        public Sys_User()
        { }
        #region Model
        private int _id;
        private string _name;
        private string _pwd;
        private int _maxusercount = 0;
        private int _childcount = 0;
        private int _topuser = 0;
        private bool _status = true;
        private int _lasttask = 0;
        private string _nickname;
        private string _telephone;
        private int _roletype = 0;
        private string _email;
        private int _remandval;
        private bool _isdisabledcall=true;
        private int _unuploadcount=0;
        private bool _isbasicsalary = true;


        /// <summary>
        /// 
        /// </summary>
        public int Id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Name
        {
            set { _name = value; }
            get { return _name; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Pwd
        {
            set { _pwd = value; }
            get { return _pwd; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int MaxUserCount
        {
            set { _maxusercount = value; }
            get { return _maxusercount; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int ChildCount
        {
            set { _childcount = value; }
            get { return _childcount; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int TopUser
        {
            set { _topuser = value; }
            get { return _topuser; }
        }
        /// <summary>
        /// 
        /// </summary>
        public bool Status
        {
            set { _status = value; }
            get { return _status; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int LastTask
        {
            set { _lasttask = value; }
            get { return _lasttask; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Nickname
        {
            set { _nickname = value; }
            get { return _nickname; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Telephone
        {
            set { _telephone = value; }
            get { return _telephone; }
        }
        public int RoleType
        {
            set { _roletype = value; }
            get { return _roletype; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string Email
        {
            set { _email = value; }
            get { return _email; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int RemandVal
        {
            set { _remandval = value; }
            get { return _remandval; }
        }

        /// <summary>
        /// 是否禁止呼叫
        /// </summary>
        public bool IsDisabledCall
        {
            set { _isdisabledcall = value; }
            get { return _isdisabledcall; }
        }

        /// <summary>
        /// 未上传录音文件次数
        /// </summary>
        public int UnUploadCount
        {
            set { _unuploadcount = value; }
            get { return _unuploadcount; }
        }
        /// <summary>
        /// 是否底薪员工
        /// </summary>
        public bool IsBasicSalary
        {
            set { _isbasicsalary = value; }
            get { return _isbasicsalary; }
        }
        #endregion Model

        #region 扩张字段
        public int UseCount;
        public List<Sys_User> ChildList;
        //记录最新订单的Id
        public int NewOrderId;
        #endregion
    }

    public partial class Sys_UserView
    {
        public Sys_UserView()
        { }
        #region Model
       
        /// <summary>
        /// 用户Id
        /// </summary>
        public int UserId{set;get;}
        /// <summary>
        /// 用户名称
        /// </summary>
        public string Name{set;get;}
        /// <summary>
        /// 用户昵称
        /// </summary>
        public string NickName{set; get; }
        /// <summary>
        /// 用户角色
        /// </summary>
        public int RoleType{set; get; }

        /// <summary>
        /// 已分配数量
        /// </summary>
        public int IsNum{set;get;}
        #endregion Model

    }
}

